from django.views.generic import ListView, DetailView
from business.models import Country


class CountryListView(ListView):
    # model = Country  # is shorthand for queryset = model.objects.all()
    queryset = Country.objects.all()
    paginate_by = 10
    # template_name = 'business/country_list.html'  # is infered automatically
    # context_object_name = 'countries'  # django automatically sets this to the model verbose_name or verbose_name_plural


class CountryDetailView(DetailView):
    pass
